package com.yan.test.test2;

/**
 * @author taoge
 * @Date 2024/8/9 20:03
 * @Description
 */
public class NumPrint extends Thread{
    private Print p;

    public NumPrint(Print p) {
        this.p = p;
    }

    @Override
    public void run() {
        for (int i = 1; i <= 52; i++) {
            p.print(i);
        }
    }
}
